package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 广告位
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ydd_advpos")
public class Advpos implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 广告位名称
     */
    private String advposname;

    /**
     * 广告位描述
     */
    private String advposdesc;

    /**
     * 广告位尺寸
     */
    private String advpossize;

    /***
     * Desc:广告图数量
     * @param null
     * @return {@link null}
     * @author Cr Mr
     * @date 2022/3/3 16:49
     */
    @TableField(exist = false)
    private Integer advposnum;

    /**
     * 是否为默认数据，null表示不是，1表示是
     */
    @TableLogic(value = "1", delval = "0")
    private String default_data;
}